<template>
  <div class="container">
    <Top type="index" />
    <div class="header-container">
      <div class="title">
        <span class="title-left">AI智能 #</span>
        <span class="title-right">预定最佳机票</span>
        <div class="horz-line"></div>
        <div class="target">
          <img src="../assets/img/target.png" alt="" />
        </div>
      </div>
      <span class="content">AI 与 你⽣活中，充满惊喜。</span>
      <Btn title="立即体验" @gotoOrder="gotoOrder" />
    </div>
    <Bottom type="home" />
  </div>
</template>
<script setup>
import Bottom from "./components/Bottom.vue";
import Btn from "./components/Btn.vue";
import Top from "./components/Top.vue";

let router = useRouter();
function gotoOrder() {
  router.push("/order_ticket");
}
</script>
<style scoped lang="scss">
.container {
  width: 100dvw;
  height: 100dvh;
  background-image: url("../assets/img/background.png");
  background-size: cover;

  .bottom-container {
    width: 100%;
    position: absolute;
    bottom: 0px;
    height: 40px;
    background: #000000;
    opacity: 0.5;
    display: flex;
    justify-content: center;
    .bottom {
      width: 430px;
      display: flex;
      align-items: center;
      position: absolute;
      top: 30%;
      img {
        margin: 0 10px 0 10px;
        width: 20px;
        height: 20px;
      }
      .left-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 18px;
        color: #bdbebe;
        line-height: 18px;
        text-align: center;
        font-style: normal;
      }
      .right-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 18px;
        color: #ffff;
        line-height: 18px;
        text-align: center;
        font-style: normal;
      }
    }
  }
  .header-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 785.5px;
    height: 228.51px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;

    .content {
      width: 327px;
      height: 20px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 26px;
      color: #ffffff;
      line-height: 20px;
      text-align: center;
      font-style: normal;
      margin-top: 50px;
    }

    .btn {
      position: absolute;
      width: 212px;
      height: 54px;
      top: 100px;
      background: #ffffff;
      border-radius: 27px;
      margin-top: 100px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      span {
        width: 72px;
        height: 18px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        font-size: 18px;
        // color: #000000;
        line-height: 18px;
        text-align: center;
        font-style: normal;
      }
      &:hover {
        background: #7fa0d0;
        color: #ffff;
        transform: translateY(-2px);
        box-shadow: 0 5px 5px #0003;
      }
    }

    .title {
      display: flex;
      align-items: center;

      .horz-line {
        position: absolute;
        top: 76px;
        left: 296px;
        width: 438px;
        // height: 1px;
        border: 1px solid #7fa0d0;
      }

      .title-left {
        width: 287px;
        height: 72px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 74px;
        color: #ffffff;
        line-height: 60px;
        text-align: center;
        font-style: normal;
      }
      .title-right {
        background-image: linear-gradient(
          90deg,
          rgba(116, 233, 249, 1) 0,
          rgba(255, 240, 224, 1) 47.663526%,
          rgba(255, 122, 205, 1) 100%
        );
        width: 444px;
        height: 72px;
        overflow-wrap: break-word;
        color: rgba(14, 255, 175, 1);
        font-size: 73px;
        font-family: PingFangSC-Semibold;
        font-weight: 600;
        text-align: left;
        white-space: nowrap;
        line-height: 65px;
        margin-left: 5px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .target {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 60px;
        img {
          margin-left: 10px;
          width: 30px;
          height: 30px;
        }
      }
    }
  }
}
</style>
